<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>

<%@ page import="java.util.List"
 %>

<%@ page import="com.stoneapple.timesheet.entity.Project" %>

<%
	List<Project> projects = (List) request.getAttribute("projects");
	%>


<link rel="stylesheet"
	href="${pageContext.request.contextPath}/style/style.css"
	type="text/css" media="screen" />


<br>
<hr>
<div align="right"><br>
<table width="636" border="0" align="center">
    <tr>
      <td width="7" scope="row">&nbsp;</td>
      <td width="7">&nbsp;</td>
      <td width="443">&nbsp;</td>
      <td width="206"><div align="right"><a href="addProject.jsp" >Add a new Project</a></div></td>
    </tr>
  </table>
  <br />
  <table width="661" border="1" align="center">
  <tr>
    <th width="189" scope="row">Project Code </th>
    <th width="191">Project Name </th>
    <th width="144">Description</th>
    <th width="109">Member</th>
  </tr>
  <% for (Project project : projects) { %>
  <tr>
    <td scope="row"><%=project.getProjectcode()%></td>
    <td><%=project.getProjectname()%></td>
    <td><%=project.getDescription()%></td>
    <td>&nbsp;</td>
  </tr>
  	<% } %>
</table>
